package com.scut.fy.admin.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author JY
 * @version 1.0
 * @date 2021/8/12 17:46
 */
@ApiModel(value = "系统用户")
public class UserVo {

    @ApiModelProperty(value = "用户ID",required=true)
    private Long userId;

    @ApiModelProperty(value = "用户名",required=true)
    private String userName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "密码过期时间")
    private LocalDateTime pwdEndTime;

    @ApiModelProperty(value = "用户角色",required=true)
    private List<RoleVo> userRoles;

    @ApiModelProperty(value = "用户所属组织",required=true)
    private List<GroupVo> userGroups;
    @ApiModelProperty(value = "电话")
    private String phone;
    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "用户状态",required=true, example = "用户状态6-正常，1-删除，9-锁定")
    private String status;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public LocalDateTime getPwdEndTime() {
        return pwdEndTime;
    }

    public void setPwdEndTime(LocalDateTime pwdEndTime) {
        this.pwdEndTime = pwdEndTime;
    }

    public List<RoleVo> getUserRoles() {
        return userRoles;
    }

    public void setUserRoles(List<RoleVo> userRoles) {
        this.userRoles = userRoles;
    }

    public List<GroupVo> getUserGroups() {
        return userGroups;
    }

    public void setUserGroups(List<GroupVo> userGroups) {
        this.userGroups = userGroups;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
